<?php
class OutingAction extends Action {
	public function outingList() {
		//防止页面乱码  
		header ( "Content-Type:text/html; charset=utf-8" );
		$Outing = M('Outing'); 
		$list = $Outing->order('outing_id DESC')->select();
		$this->assign('outinglist',$list);
		$this->display ();
	}
	
	public function outingArticle() {
		//防止页面乱码  
		header ( "Content-Type:text/html; charset=utf-8" );
		$Outing = M('Outing'); 
		$condition['outing_id'] = $_GET['id'];
		$result = $Outing->where($condition)->find();
		$this->assign('outing',$result);
		$this->display ();
	}
}
